Solaris 10 x86系统下安装gcc过程
Solaris 10 x86系统下安装gcc过程说明,需要的朋友可以参考下。
1.系统环境准备
a. 由于系统默认的shell使用不太方便,所以将系统shell更改为bash。
# which bash
usr/bin/bash
# usermod -s /usr/bin/bash root
b. 建立系统.profile文件:
# cp /etc/skel/local.profile /.profile
c. 在.profile文件中添加如下内容
PATH=http://www.ym97.com/usr/bin:/usr/local/bin:/usr/ucb:/etc:/usr/sbin:/usr/bin:/usr/sfw/bin:/usr/ccs/bin:/opt/csw/bin:.
export PATH
export PS1='\u:\w#'
d. 从Solaris 10安装光盘中安装如下工具包
# pkgadd –d /cdrom/Solaris_10/Product SUNWwgetr
# pkgadd –d /cdrom/Solaris_10/Product SUNWwgetu
# pkgadd –d /cdrom/Solaris_10/Product SUNWwgetS
# pkgadd –d /cdrom/Solaris_10/Product SUNWgcmn
2. 下载gcc软件
# wgetftp://ftp.sunfreeware.com/pub/freeware/intel/10/gcc-3.4.6-sol10-x86-local.gz
# wgetftp://ftp.sunfreeware.com/pub/freeware/intel/10/libiconv-1.11-sol10-x86-local.gz
# wgetftp://ftp.sunfreeware.com/pub/freeware/intel/10/libgcc-3.4.6-sol10-x86-local.gz
# wgetftp://ftp.sunfreeware.com/pub/freeware/intel/10/libintl-3.4.0-sol10-x86-local.gz
注:第一个为gcc的应用程序,下面3个为gcc的库文件包
3. 解压和安装
# gunzip gcc-3.4.6-sol10-x86-local.gz
# gunzip libiconv-1.11-sol10-x86-local.gz
# gunzip libgcc-3.4.6-sol10-x86-local.gz
# gunzip libintl-3.4.0-sol10-x86-local.gz
#pkgadd -d gcc-3.4.6-sol10-x86-local
#pkgadd -d libiconv-1.11-sol10-x86-local.gz
#pkgadd -d libgcc-3.4.6-sol10-x86-local.gz
#pkgadd -d libintl-3.4.0-sol10-x86-local.gz
4. 修改 .profile文件
在 .profile文件中增加如下内容
export LD_LIBRAEY_PATH=http://www.ym97.com/usr/local/lib:.
相关热词: 安装
本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!
本文地址: https://v30.fanwenzhu.com/xt/solaris/8597.shtml
相关文章
热门TAG
win10 ecshop 主机 阿里云 解决 配置 C# C++ 解析 SQL语句 命令 Go语言 方法 CSS3 HTML5 CSS win7 MSSQL 服务器配置 IIS7.5 IIS7 IIS6 IIS CentOS 7 Linux oracle数据库 oracle phpcms discuz discuz教程最新文章
-
用OpenSolaris和ZFS搭建家用
时间:2020-12-28
-
solaris11如何扩展资源池?
时间:2020-12-28
-
科普Solaris系统安全常用命
时间:2020-12-23
热门文章
-
科普Solaris系统安全常用命令小结
时间:2020-12-23
-
solaris11如何扩展资源池?solaris11扩展资源池
时间:2020-12-28
-
用OpenSolaris和ZFS搭建家用NAS的方法(图文教
时间:2020-12-28
